package com.itheima.day02_datatype;

public class Demo09_operator {
    public static void main(String[] args) {
        double score = 58.5;
        String rs = score >= 60 ? "及格" : "不及格";
        System.out.println("rs = " + rs);

        int a = 99;
        int b = 69;
        int max = a > b ? a : b;
        System.out.println("max = " + max);

        int i = 10;
        int j = 45;
        int k = 34;
        int temp = i > j ? i : j;
        int max2 = temp > k ? temp : k;
        System.out.println("max2 = " + max2);
    }
}
